home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gnome-vfs-module-2.0 / libgnomevfs / gnome-vfs-ssl.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-01  |  2.3 KB  |  64 lines

  1. /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
  2.  
  3. /* gnome-vfs-ssl.h
  4.  *
  5.  * Copyright (C) 2001 Ian McKellar
  6.  *
  7.  * The Gnome Library is free software; you can redistribute it and/or
  8.  * modify it under the terms of the GNU Library General Public License as
  9.  * published by the Free Software Foundation; either version 2 of the
  10.  * License, or (at your option) any later version.
  11.  *
  12.  * The Gnome Library is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  * Library General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU Library General Public
  18.  * License along with the Gnome Library; see the file COPYING.LIB.  If not,
  19.  * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  * Boston, MA 02111-1307, USA. 
  21.  */
  22. /*
  23.  * Authors: Ian McKellar <yakk@yakk.net>
  24.  */
  25.  
  26. #ifndef GNOME_VFS_SSL_H
  27. #define GNOME_VFS_SSL_H
  28.  
  29. #include <libgnomevfs/gnome-vfs-socket.h>
  30.  
  31. G_BEGIN_DECLS
  32.  
  33. typedef struct GnomeVFSSSL GnomeVFSSSL;
  34.  
  35. gboolean        gnome_vfs_ssl_enabled        (void);
  36. /* FIXME: add *some* kind of cert verification! */
  37. GnomeVFSResult  gnome_vfs_ssl_create         (GnomeVFSSSL **handle_return,
  38.                                       const char *host, 
  39.                                       unsigned int port,
  40.                           GnomeVFSCancellation *cancellation);
  41. GnomeVFSResult  gnome_vfs_ssl_create_from_fd (GnomeVFSSSL **handle_return,
  42.                           gint fd,
  43.                           GnomeVFSCancellation *cancellation);
  44. GnomeVFSResult  gnome_vfs_ssl_read           (GnomeVFSSSL *ssl,
  45.                           gpointer buffer,
  46.                           GnomeVFSFileSize bytes,
  47.                                 GnomeVFSFileSize *bytes_read,
  48.                           GnomeVFSCancellation *cancellation);
  49. GnomeVFSResult  gnome_vfs_ssl_write          (GnomeVFSSSL *ssl,
  50.                           gconstpointer buffer,
  51.                           GnomeVFSFileSize bytes,
  52.                           GnomeVFSFileSize *bytes_written,
  53.                           GnomeVFSCancellation *cancellation);
  54. void            gnome_vfs_ssl_destroy        (GnomeVFSSSL *ssl,
  55.                           GnomeVFSCancellation *cancellation);
  56. GnomeVFSResult  gnome_vfs_ssl_set_timeout    (GnomeVFSSSL *ssl,
  57.                           GTimeVal *timeout,
  58.                           GnomeVFSCancellation *cancellation);
  59. GnomeVFSSocket *gnome_vfs_ssl_to_socket      (GnomeVFSSSL *ssl);
  60.  
  61. G_END_DECLS
  62.  
  63. #endif /* GNOME_VFS_SSL_H */
  64.